import { defineStore } from "pinia";
export const useStore = defineStore("main", {
  state() {
    return {
      loading: false,
      loadingText: "",
    };
  },
  getters: {},
  actions: {
    showLoading(text) {
      this.loading = true;
      this.loadingText = text
    },
    hideLoading() {
      this.loading = false;
    },
  },
});
